package com.punai.datapush.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * 期次维护对象 eco_feeitem_period
 *
 * @author ruoyi
 * @date 2023-04-19
 */

public class EcoFeeitemPeriodVo implements Serializable {

    private static final long serialVersionUID = 8937725444876159420L;

    private String id;

    private String name;

    private String dateRange;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date start;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date end;

    private Long versionControl;

    private String selectPrevPeriodId;

    public String getSelectPrevPeriodId() {
        return selectPrevPeriodId;
    }

    public void setSelectPrevPeriodId(String selectPrevPeriodId) {
        this.selectPrevPeriodId = selectPrevPeriodId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDateRange() {
        return dateRange;
    }

    public void setDateRange(String dateRange) {
        this.dateRange = dateRange;
    }

    public Long getVersionControl() {
        return versionControl;
    }

    public void setVersionControl(Long versionControl) {
        this.versionControl = versionControl;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EcoFeeitemPeriodVo that = (EcoFeeitemPeriodVo) o;
        return Objects.equals(id, that.id) && Objects.equals(name, that.name) && Objects.equals(dateRange, that.dateRange) && Objects.equals(versionControl, that.versionControl);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, dateRange, versionControl);
    }
}
